Copyright and Header/***************************************************************************** * TextClock (C++ Version) Version 1.0.2 * * Copyright 1996 Matt Wright mattw@worldwidemart.com * * Created 07/15/96 Last Modified 03/29/97 * * Matt's Script Archive, Inc. http://www.worldwidemart.com/scripts/ * ****************************************************************************** * If you run into any problems while trying to configure this scripts, help * * is available. The steps you should take to get the fastest results, are: * * 1) Read this file thoroughly * * 2) Consult the Matt's Script Archive Frequently Asked Questions: * * http://www.worldwidemart.com/scripts/faq/ * * 3) If you are still having difficulty installing this script, send * * e-mail to: scripts-help@tahoenet.com * * Include any error messages you are receiving and as much detail * * as you can so we can spot your problem. Also include the variable * * configuration block that is located at the top of the script. * * * * Hopefully we will be able to help you solve your problems. Thank you. * ****************************************************************************** * COPYRIGHT NOTICE * * Copyright 1996 Matthew M. Wright All Rights Reserved. * * * * TextClock may be used and modified free of charge by anyone so long as * * this copyright notice and the comments above remain intact. By using this * * code you agree to indemnify Matthew M. Wright from any liability that * * might arise from it's use. * * * * Selling the code for this program without prior written consent is * * expressly forbidden. In other words, please ask first before you try and * * make money off of my program. * * * * Obtain permission before redistributing this software over the Internet or * * in any other medium. In all cases copyright and header must remain intact * *****************************************************************************/ OverviewTextClock is a C++ CGI program which is meant to be run from Server Side Includes. For more information on Server Side Includes, check out the FAQ at the URL mentioned above. When this script is implemented, it can be used to show browsers several variations of the current time and/or date.
tclock.cpp
Compiling this ProgramThis program was written to compile on a BSDI BSD/OS version 2.1 with the g++ compiler. In order to compile it and get it ready for execution:g++ tclock.cpp mv a.out tclockYou can change tclock above to tclock.cgi if you need .cgi extensions for CGI programs to work on your web server. How to Call This Script From Your Web PageCalling this script from a web page is fairly simple. You just use a standard Server Side Include call, such as:<!--#exec cgi="/url/path/to/tclock.cgi"--> OR <!--#include virtual="/url/path/to/tclock.cgi"--> HistoryVersion 1.0.3 - 03/29/97 - Program converted to C++ - You can now link to other URLs with the clock, not just mine. :-) Version 1.0.2 - 07/15/96 - Missing ' after Day of the Week Fixed. Version 1.0.1 - 07/15/96 - Minor Day of the Week Problem Fixed. Version 1.0 - 07/15/95 - First Version Released.
Matt Wright - mattw@worldwidemart.com |